package com.eff.android;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.View;
import android.view.ViewGroup.LayoutParams;

public class EBaseActivity extends FragmentActivity{
	public static final String TAG = EBaseActivity.class.getSimpleName();

    /**
     * @see android.support.v4.app.FragmentActivity#onCreate(android.os.Bundle)
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
    }
    
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
    	// TODO Auto-generated method stub
    	return super.onCreateOptionsMenu(menu);
    }

    /**
     * @see android.support.v4.app.FragmentActivity#onStart()
     */
    @Override
    public void onStart() {
    	super.onStart();
    }

    /**
     * @see android.support.v4.app.FragmentActivity#onStop()
     */
    @Override
    public void onStop() {
    	super.onStop();
    }

    /**
     * @see android.app.Activity#onPostCreate(android.os.Bundle)
     */
    @Override
    public void onPostCreate(Bundle savedInstanceState) {
    	super.onPostCreate(savedInstanceState);
    }

    /**
     * @see android.app.Activity#findViewById(int)
     */
    @Override
    public View findViewById(int id) {
		View v = super.findViewById(id);
		if (v != null)
		    return v;
		return null;
    }

    /**
     * @see android.support.v4.app.FragmentActivity#onSaveInstanceState(android.os
     *      .Bundle)
     */
    @Override
    protected void onSaveInstanceState(Bundle outState) {
    	super.onSaveInstanceState(outState);
    }

    /**
     * @see android.app.Activity#setContentView(int)
     */
    @Override
    public void setContentView(int id) {
    	setContentView(getLayoutInflater().inflate(id, null));
    }

    /**
     * @see android.app.Activity#setContentView(android.view.View)
     */
    @Override
    public void setContentView(View v) {
	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT,
		LayoutParams.MATCH_PARENT));
    }

    /**
     * @see android.app.Activity#setContentView(android.view.View,
     *      android.view.ViewGroup.LayoutParams)
     */
    @Override
    public void setContentView(View v, LayoutParams params) {
	super.setContentView(v, params);
	// helper.registerContentView(v, params);
    }

    /**
     * @see android.app.Activity#onKeyUp(int, android.view.KeyEvent)
     */
    @Override
    public boolean onKeyUp(int keyCode, KeyEvent event) {
	return super.onKeyUp(keyCode, event);
    }

}
